﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Noebe
{
    class StringHelper
    {
        public const string global_framework_id = "pixysoft.framework.noebe";

        public const string global_configuartion_configname = "NoebeConfiguration";

        public const string global_configuartion_ioc_configname = "NoebeInjectConfiguration";

        public const int timeout_connection = 1000 * 60 * 5;

        public const int interval_lazytime = 1000 * 10;

        /// <summary>
        /// 取得值
        /// </summary>
        /// <param name="keyValue">The key value.</param>
        /// <returns></returns>
        public static object GetKeyValue(object keyValue)
        {
            if (keyValue == null || keyValue == System.DBNull.Value || keyValue.ToString().Trim() == "")
                return System.DBNull.Value;
            return keyValue;
        }
    }
}
